package org.crazyit.net;

import org.ksoap2.serialization.SoapObject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;


public class LanrenActivity extends Activity{
	
	private TextView lrtext;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = this.getIntent();
		String city = intent.getStringExtra("city");
		
		setContentView(R.layout.lanren);
		lrtext = (TextView)findViewById(R.id.lrtext);
		
		SoapObject detail = WebServiceUtil.getWeatherByCity(city);
		String weatherCurrent = detail.getProperty(6).toString();
		String [] ary = weatherCurrent.split("\\n");
		lrtext.setText(ary.length+"");
		//lrtext.setText(city);
	}
}
